/**
 * 
 */
package ${basepackage}.model.vo.op.authority;

import javax.validation.GroupSequence;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import com.excalibur.core.model.BaseObject;

import ${basepackage}.model.vo.validation.IConstraintGroup;
import ${basepackage}.model.vo.validation.INotNullGroup;

/**
 * @author "Jiance Qin"
 * 
 * @date 2014年3月10日
 * 
 * @time 下午4:45:29
 * 
 * @desc
 * 
 */
@GroupSequence(value = { INotNullGroup.class, IConstraintGroup.class,
		AddAuthorityForm.class })
public class AddAuthorityForm extends BaseObject {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5275539481794221767L;

	@NotBlank(message = "{webapp.validation.AddAuthorityForm.name.NotBlank}", groups = INotNullGroup.class)
	@Length(message = "{webapp.validation.AddAuthorityForm.name.Length}", min = 1, max = 50, groups = IConstraintGroup.class)
	private String name;

	@NotBlank(message = "{webapp.validation.AddAuthorityForm.displayName.NotBlank}", groups = INotNullGroup.class)
	@Length(message = "{webapp.validation.AddAuthorityForm.displayName.Length}", min = 1, max = 255, groups = IConstraintGroup.class)
	private String displayName;

	/**
	 * 
	 */
	public AddAuthorityForm() {

	}

	/**
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the displayName
	 */
	public String getDisplayName() {
		return displayName;
	}

	/**
	 * @param displayName
	 *            the displayName to set
	 */
	public void setDisplayName(String displayName) {
		this.displayName = displayName;
	}

	/**
	 * @return the serialversionuid
	 */
	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
